package com.blackhorse.demo.myBeanFactory.service;


import com.blackhorse.demo.myBeanFactory.dao.MyAccountDao;
import com.blackhorse.demo.myBeanFactory.dao.MyAccountDaoImpl;

public class MyAccountServiceImpl implements MyAccountService {
    //存在问题：业务层和持久层耦合
    private MyAccountDao accountDao = new MyAccountDaoImpl();

    @Override
    public void saveAccount() {
        accountDao.saveAccount();
    }
}
